const commentRouter = require('express').Router()
const commentController = require('../constrollers/comment')

// 获取视频相关评论
commentRouter.get('/api/comments/:videoId', commentController.selectComments)
// 发表评论
commentRouter.post('/comment', commentController.addComment)
// 点赞评论
commentRouter.post('/like/comment/:id', commentController.addCommentLike)
// 取消点赞评论
commentRouter.post('/unlike/comment/:id', commentController.deleteCommentLike)
// 获取用户赞过的评论
commentRouter.get('/commentlikes', commentController.selectCommentLikes)

module.exports = commentRouter